package com.xiaou.buss.admin.web;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import com.base.criteria.Criteria;
import com.xiaou.buss.admin.manageruser.entity.ManagerUser;
import com.xiaou.buss.admin.manageruser.service.ManagerUserService;

@RestController
public class UserController {

	@Autowired
	ManagerUserService userService;

	@RequestMapping(value = "/user", method = RequestMethod.GET)
	public List<ManagerUser> readUserInfo() {
		try {
			List<ManagerUser> ls = userService.queryByList(new Criteria());
			return ls;
		} catch (Exception e) {
			return null;
		}
	}
}
